package com.ruoyi.tb.lmt.service;

import com.ruoyi.tb.lmt.domain.TbSpecialInspection;
import com.ruoyi.tb.lmt.domain.vo.TbSpecialInspectionVo;
import com.ruoyi.tb.lmt.domain.bo.TbSpecialInspectionBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 专检主表Service接口
 *
 * @author ruoyi
 * @date 2024-01-04
 */
public interface ITbSpecialInspectionService {

    /**
     * 查询专检主表
     */
    TbSpecialInspectionVo queryById(Long id);

    /**
     * 查询专检主表列表
     */
    TableDataInfo<TbSpecialInspectionVo> queryPageList(TbSpecialInspectionBo bo, PageQuery pageQuery);

    /**
     * 查询专检主表列表
     */
    List<TbSpecialInspectionVo> queryList(TbSpecialInspectionBo bo);

    /**
     * 新增专检主表
     */
    Boolean insertByBo(TbSpecialInspectionBo bo);

    /**
     * 修改专检主表
     */
    Boolean updateByBo(TbSpecialInspectionBo bo);

    /**
     * 校验并批量删除专检主表信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    TbSpecialInspectionBo selectByBo(TbSpecialInspectionBo bo);

    TableDataInfo<TbSpecialInspectionVo> selectBySpecial(String id, String lmtType, String lmtNumber, String status, String repairChar, String planName, String workGroup, String workUser, PageQuery pageQuery);

    String updateWorkNeedByBo(Long id);
}
